package com.un.ebs.customer.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.un.ebs.core.enums.SexEnum;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author liubo
 * @email liubocs@163.com
 * @date 2020/5/8 12:18
 */
@Data
public class CustomerBookRequest {

    @NotNull
    private String custId;

    private String dictType;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @NotNull
    private Date time;

    private String bookDesc;

    private String spuId;

    private String timeId;

    private String startTime;

    private String endTime;

    private String defunctId;

    private String defunctName;

    private SexEnum sex;

    private String tombSkuId;
}
